﻿<%@ Page Title="" Language="C#" MasterPageFile="~/HMS.Master" AutoEventWireup="true" CodeBehind="StaffCreation.aspx.cs" Inherits="ReservationModule.StaffCreation" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    <style type="text/css">
        .auto-style1
        {
            width: 100%;
        }
        .auto-style2
        {
            width: 100%;
        }
        .auto-style3
        {
            width: 162px;
            text-align: right;
        }
        .auto-style4
        {
            width: 162px;
            height: 22px;
            text-align: left;
        }
        .auto-style5
        {
            height: 22px;
        }
        .auto-style6
        {
            height: 22px;
            text-align: left;
            width: 420px;
        }
        .auto-style7
        {
            width: 162px;
            text-align: left;
            height: 31px;
        }
        .auto-style8
        {
            height: 31px;
        }
        .auto-style9
        {
            height: 22px;
            text-align: right;
        }
        .auto-style10
        {
            text-align: left;
        }
        .auto-style11
        {
            width: 162px;
            text-align: left;
        }
        .auto-style12
        {
            height: 31px;
            text-align: left;
            width: 420px;
        }
        .auto-style13
        {
            text-align: left;
            width: 420px;
        }
        .auto-style14
        {
            width: 420px;
        }
    </style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">

                 <br />
    <h2>Create</h2>
                 <asp:ScriptManager ID="ScriptManager1" runat="server">
            </asp:ScriptManager>

     <table class="auto-style2">
         <tr>
             <td class="auto-style9" colspan="4"><h3 class="auto-style10">-Staff Particulars-</h3>
             </td>
         </tr>
         <tr>
             <td class="auto-style4">StaffNRIC:<br />
                 <br />
             </td>
             <td class="auto-style6">
                 <asp:TextBox ID="tbxStaffNRIC" runat="server"></asp:TextBox>
                 <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ControlToValidate="tbxStaffNRIC" ErrorMessage="RequiredFieldValidator" ForeColor="Red" ValidationGroup="go">Please enter Staff NRIC</asp:RequiredFieldValidator>
                 <asp:Label ID="Label1" runat="server"></asp:Label>
                 <br />
                 <br />
                 <br />
             </td>
             <td class="auto-style5"></td>
             <td class="auto-style5"></td>
         </tr>
         <tr>
             <td class="auto-style7">StaffName:<br />
                 <br />
             </td>
             <td class="auto-style12">
                 <asp:TextBox ID="tbxStaffName" runat="server"></asp:TextBox>
                 <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ControlToValidate="tbxStaffName" ErrorMessage="RequiredFieldValidator" ForeColor="Red" ValidationGroup="go">Please enter Staff Name</asp:RequiredFieldValidator>
                 <br />
                 <br />
             </td>
             <td class="auto-style8">
                 <asp:RegularExpressionValidator ID="RegularExpressionValidator1" runat="server" ControlToValidate="tbxStaffName" ErrorMessage="RegularExpressionValidator" ForeColor="Red" ValidationExpression="[a-zA-Z ]*$" ValidationGroup="go">Please enter letters only</asp:RegularExpressionValidator>
                 <br />
             </td>
             <td class="auto-style8"></td>
         </tr>
         <tr>
             <td class="auto-style11">StaffType:<br />
                 <br />
             </td>
             <td class="auto-style13">
                 <asp:DropDownList ID="DDLStaffType" runat="server">
                     <asp:ListItem>Receptionist</asp:ListItem>
                     <asp:ListItem>Managers</asp:ListItem>
                     <asp:ListItem>Administrators</asp:ListItem>
                 </asp:DropDownList>
                 <br />
                 <br />
             </td>
             <td>&nbsp;</td>
             <td>&nbsp;</td>
         </tr>
         <tr>
             <td class="auto-style11">DateOfBirth:<br />
                 <br />
             </td>
             <td class="auto-style13">
                 <asp:TextBox ID="tbxDOB" runat="server" AutoPostBack="True" DateFormat="MM/dd/yyyy" Width="200px"></asp:TextBox>
                                                    
                                                    <ajaxToolkit:CalendarExtender ID="tbxDOB_CalendarExtender2" runat="server" Enabled="True" TargetControlID="tbxDOB" Format="dddd, MMMM dd, yyyy">
                                                    </ajaxToolkit:CalendarExtender>
                                                    
                                                    &nbsp;<ajaxToolkit:CalendarExtender ID="tbxDOB_CalendarExtender" runat="server" Enabled="True" TargetControlID="tbxDOB" Format="dddd, MMMM dd, yyyy" PopupButtonID="btnCheckindateImage2">
                                                    </ajaxToolkit:CalendarExtender>
                                                    <asp:ImageButton ID="btnCheckindateImage2" runat="server" ImageUrl="~/Images/Calendar.png" />
                 <asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" ControlToValidate="tbxDOB" ErrorMessage="RequiredFieldValidator" ForeColor="Red" ValidationGroup="go">Please enter Date of Birth</asp:RequiredFieldValidator>
                 <br />
                 <br />
             </td>
             <td>&nbsp;</td>
             <td>&nbsp;</td>
         </tr>
         <tr>
             <td class="auto-style11">Nationality:<br />
                 <br />
             </td>
             <td class="auto-style13">
                 <asp:TextBox ID="tbxNationality" runat="server"></asp:TextBox>
                 <asp:RequiredFieldValidator ID="RequiredFieldValidator4" runat="server" ControlToValidate="tbxNationality" ErrorMessage="RequiredFieldValidator" ForeColor="Red" ValidationGroup="go">Please enter Nationality</asp:RequiredFieldValidator>
                 <br />
                 <br />
             </td>
             <td>
                 <asp:RegularExpressionValidator ID="RegularExpressionValidator2" runat="server" ControlToValidate="tbxNationality" ErrorMessage="RegularExpressionValidator" ForeColor="Red" ValidationExpression="[a-zA-Z ]*$" ValidationGroup="go">Please enter letters only</asp:RegularExpressionValidator>
                 <br />
             </td>
             <td>&nbsp;</td>
         </tr>
         <tr>
             <td class="auto-style11">ContactNumber:<br />
                 <br />
             </td>
             <td class="auto-style13">
                 <asp:TextBox ID="tbxContactNumber" runat="server"></asp:TextBox>
                 <asp:RequiredFieldValidator ID="RequiredFieldValidator5" runat="server" ControlToValidate="tbxContactNumber" ErrorMessage="RequiredFieldValidator" ForeColor="Red" ValidationGroup="go">Please enter Contact Number</asp:RequiredFieldValidator>
                 <br />
                 <br />
             </td>
             <td>
                 <asp:RegularExpressionValidator ID="RegularExpressionValidator3" runat="server" ControlToValidate="tbxContactNumber" ErrorMessage="RegularExpressionValidator" ForeColor="Red" ValidationExpression="[0-9]+" ValidationGroup="go">Please enter numbers only</asp:RegularExpressionValidator>
                 <br />
             </td>
             <td>&nbsp;</td>
         </tr>
         <tr>
             <td class="auto-style11">BankAccountNumber:<br />
                 <br />
             </td>
             <td class="auto-style13">
                 <asp:TextBox ID="tbxBankNo" runat="server"></asp:TextBox>
                 <asp:RequiredFieldValidator ID="RequiredFieldValidator6" runat="server" ControlToValidate="tbxBankNo" ErrorMessage="RequiredFieldValidator" ForeColor="Red" ValidationGroup="go">Please enter Bank Account Number</asp:RequiredFieldValidator>
                 <br />
                 <br />
             </td>
             <td>
                 <asp:RegularExpressionValidator ID="RegularExpressionValidator4" runat="server" ControlToValidate="tbxBankNo" ErrorMessage="RegularExpressionValidator" ForeColor="Red" ValidationExpression="[0-9]+" ValidationGroup="go">Please enter numbers only</asp:RegularExpressionValidator>
                 <br />
             </td>
             <td>&nbsp;</td>
         </tr>
         <tr>
             <td class="auto-style11">DutyType:<br />
                 <br />
             </td>
             <td class="auto-style13">
                 <asp:DropDownList ID="DDLDutyType" runat="server">
                     <asp:ListItem>General Maintenance</asp:ListItem>
                     <asp:ListItem>Room Maintenance</asp:ListItem>
                     <asp:ListItem>Estate Maintenance</asp:ListItem>
                     <asp:ListItem>Security</asp:ListItem>
                 </asp:DropDownList>
                 <br />
                 <br />
             </td>
             <td>&nbsp;</td>
             <td>&nbsp;</td>
         </tr>
         <tr>
             <td class="auto-style3">&nbsp;</td>
             <td class="auto-style14">
                 <asp:Button ID="btnCreate" runat="server" OnClick="btnCreate_Click" Text="Create" ValidationGroup="go" />
             &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                 <asp:Button ID="btnBack" runat="server" OnClick="btnBack_Click" Text="Back" />
             </td>
             <td>&nbsp;</td>
             <td>&nbsp;</td>
         </tr>
     </table>
       
</asp:Content>
